package zfb.test;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;

public class ReadFile {
	public static void main(String[] args) throws Exception{
		File file = new File("11.txt");
		BufferedReader re = new BufferedReader(new InputStreamReader(new FileInputStream(file)));
		try{
			StringBuilder sb = new StringBuilder();
			String readLine = re.readLine();
			while(readLine != null){
				if(sb.length() > 0){
					sb.append(",");
				}
				String substring = readLine.substring(0, 12);
				sb.append("'"+substring+"'");
				readLine = re.readLine();
			}
			System.out.println(sb);
		}finally{
			re.close();
		}
	}
}
